package com.exmaple.cdc.wrap;

import com.github.shyiko.mysql.binlog.event.EventData;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * @author chentao
 * @version 1.0
 * @description: TODO
 * @date 2025/3/9 上午12:10
 */
public class BinlogAddObj extends BinlogObj {

    //变化的数据
    private List<Map<String, Serializable>> rowsList = new ArrayList<>();

    public List<Map<String, Serializable>> getRowsList() {
        return rowsList;
    }

    public void setRowsList(List<Map<String, Serializable>> rowsList) {
        this.rowsList = rowsList;
    }

    public BinlogAddObj(String tableName, String type, EventData eventData) {
        super(tableName, type, eventData);
    }

    @Override
    public String toString() {
        return "BinlogAddObj{" +
                "rowsList=" + rowsList +
                '}';
    }
}
